package com.yangcangclub.commons.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 系统属性配置类
 */
@Component(value = "sysConfig")
public class SysConfig {

    @Value("${user.access_token.seconds}")
    private int  accessTokenSeconds;

    @Value("${user.refresh_token.seconds}")
    private int  refreshTokenSeconds;

    @Value("${message.sms.temp.id}")
    private String  smsTempId;

    @Value("${message.sms.findpass.id}")
    private String  findpassId;

    @Value("${message.sms.sendgoodsout.id}")
    private String  sendGoodsOutId;


    @Value("${message.sms.activeCard.id}")
    private String  sendActiveCardId;

    @Value("${system.img.access_key}")
    private String  imgAccessKey;

    @Value("${system.img.secret_key}")
    private String  imgSecretKey;


    @Value("${system.img.bucketname}")
    private String  imgBucket;

    @Value("${system.img.head}")
    private String  imgHead;

    @Value("${yccHostUrl}")
    private String yccHostUrl;

    @Value("${yccBaseUrl}")
    private String yccBaseUrl;

    @Value("${system.file.maxsize}")
    private long  fileMaxsize;

    @Value("${system.file.type}")
    private String  fileType;

    @Value("${apollo.time.task.switch}")
    private boolean  taskSwitch;

    @Value("${apollo.test.env}")
    private boolean  testEnv;

    @Value("${MQ.not.test.env}")
    private boolean mqtestEnv;

    @Value("${MQ.AccessKey}")
    private String  mqAccessKey;

    @Value("${MQ.SecretKey}")
    private String  mqSecretKey;

    @Value("${fund.withdrawals.max.times.per.month}")
    private int  fundwdMaxTimes;

    @Value("${WX.Appid}")
    private String wxappid;

    @Value("${WX.Secret}")
    private String wxsecret;
    /**微信推送跳转url **/
    @Value("${WX.send.url}")
    private String wxSendUrl;

    @Value("${pc_content_server}")
    private String  pcContentServer;


    @Value("${topicViewUrl}")//文章阅读URL
    private String  topicViewUrl;
    @Value("${carouselViewUrl}")//文章阅读URL
    private String  carouselViewUrl;

    @Value("${ajax_url_head}")
    private String ajaxUrlHead;

    @Value("${user.access.token.info}")
    private String userAccessTokenUrl;

    @Value("${user.info.id}")
    private String userInfoUrl;

    @Value("${user.list.ids}")
    private String userListUrl;


    @Value("${article_read_time}")
    private int readTime;

    @Value("${article_read_cookie}")
    private String readCookieKey;

    /** MQ　>>>Topic  **/
    @Value("${user_relation_topic}")
    private String user_relation_topic;
    @Value("${fund_relation_topic}")
    private String fund_relation_topic;
    @Value("${topic_relation_topic}")
    private String topic_relation_topic;

    /** MQ　>>>发布者  **/
    @Value("${user_relation_productor}")
    private String user_relation_productor;
    @Value("${fund_relation_productor}")
    private String fund_relation_productor;
    @Value("${topic_relation_productor}")
    private String topic_relation_productor;


    @Value("${article_cookie_limit}")
    private  int  articleCookieLimit;

    @Value("${article_ip_limit}")
    private  int  articleIPLimit;


    /** MQ　>>>订阅者  **/

    @Value("${message_consumer}")
    private String message_consumer;

    @Value("${fund_consumer}")
    private String fund_consumer;
    @Value("${follow_consumer}")
    private String follow_consumer;

    @Value("${report_consumer}")
    private String report_consumer;



    /***信息配置相关 **/

    /***每人每天分享信息最大数 **/
    @Value("${today_share_topic_max_num}")
    private int today_share_topic_max_num;

    /***每篇信息分享最大数 **/
    @Value("${topic_share_max_num}")
    private int topic_share_max_num;


    /** MQ开关 **/
    @Value("${mq.is.open.model}")
    private String mqIsOpenModel;

    @Value("${community_relation_topic}")
    private String community_relation_topic;

    @Value("${course_relation_topic}")
    private String course_relation_topic;

    @Value("${card_relation_topic}")
    private String card_relation_topic;

    @Value("${card_relation_productor}")
    private String card_relation_productor;

    @Value("${card_report_consumer}")
    private String card_report_consumer;

    @Value("${community_relation_productor}")
    private String community_relation_productor;

    @Value("${course_relation_productor}")
    private String course_relation_productor;

    @Value("${community_consumer}")
    private String community_consumer;

    @Value("${topic_consumer}")
    private String topic_consumer;


    @Value("${mail.server.host}")
    private String mailServerHost;
    @Value("${mail.server.port}")
    private String mailServerPort;
    @Value("${mail.server.userName}")
    private String mailServerUserName;
    @Value("${mail.server.password}")
    private String mailServerPassword;
    @Value("${mail.server.execeptionEmail}")
    private String mailServerExeceptionEmail;
    @Value("${mail.server.systemName}")
    private String mailServerSystemName;
    @Value("${mail.is.enable}")
    private boolean  mailIsEnable;

    @Value("${community.user.max.count}")
    private  int  communityMaxCount;
    /** 标签Code **/
    @Value("${mark.code.resume}")
    private String markCodeResume;
    @Value("${mark.code.assessTeacher}")
    private String markAssessTeacher;


    /** 阿里OSS **/
    @Value("${oss.endpoint}")
    private String endpoint;
    @Value("${oss.accessKeyId}")
    private String accessKeyId;
    @Value("${oss.bucketName}")
    private String bucketName;
    @Value("${oss.accessUrl}")
    private String accessUrl;

    @Value("${oss.accessKeySecret}")
    private String accessKeySecret;

    /** Alipay **/
    @Value("${Alipay.appId}")
    private String appId;
    @Value("${Alipay.privateKey}")
    private String privateKey;
    @Value("${Alipay.aliPublicKey}")
    private String aliPublicKey;
    @Value("${Alipay.charset}")
    private String charset;
    @Value("${Alipay.notifyUrl}")
    private String notifyUrl;
    @Value("${Alipay.alipayWebReturnUrl}")
    private String alipayWebReturnUrl;

    /**WechatPay**/
    @Value("${WechatPay.wechatTradeType}")
    private String wechatTradeType;
    @Value("${WechatPay.wechatWebPartner}")
    private String wechatWebPartner;
    @Value("${WechatPay.wechatWebAppId}")
    private String wechatWebAppId;
    @Value("${WechatPay.wechatWebAppSecret}")
    private String wechatWebAppSecret;
    @Value("${WechatPay.wechatAppKey}")
    private String wechatAppKey;
    @Value("${WechatPay.wechatNotifyUrl}")
    private String wechatNotifyUrl;

    public String getCard_relation_topic() {
        return card_relation_topic;
    }

    public void setCard_relation_topic(String card_relation_topic) {
        this.card_relation_topic = card_relation_topic;
    }

    public String getCard_relation_productor() {
        return card_relation_productor;
    }

    public void setCard_relation_productor(String card_relation_productor) {
        this.card_relation_productor = card_relation_productor;
    }

    public String getCard_report_consumer() {
        return card_report_consumer;
    }

    public void setCard_report_consumer(String card_report_consumer) {
        this.card_report_consumer = card_report_consumer;
    }

    public String getUserAccessTokenUrl() {
        return userAccessTokenUrl;
    }

    public void setUserAccessTokenUrl(String userAccessTokenUrl) {
        this.userAccessTokenUrl = userAccessTokenUrl;
    }

    /******************set get methods *******************************/




    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getAccessUrl() {
        return accessUrl;
    }

    public void setAccessUrl(String accessUrl) {
        this.accessUrl = accessUrl;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getCourse_relation_productor() {
        return course_relation_productor;
    }

    public String getCourse_relation_topic() {
        return course_relation_topic;
    }

    public void setCourse_relation_productor(String course_relation_productor) {
        this.course_relation_productor = course_relation_productor;
    }

    public void setCourse_relation_topic(String course_relation_topic) {
        this.course_relation_topic = course_relation_topic;
    }


    public String getSendGoodsOutId() {
        return sendGoodsOutId;
    }

    public void setSendGoodsOutId(String sendGoodsOutId) {
        this.sendGoodsOutId = sendGoodsOutId;
    }

    public String getMarkCodeResume() {
        return markCodeResume;
    }

    public void setMarkCodeResume(String markCodeResume) {
        this.markCodeResume = markCodeResume;
    }

    public String getMarkAssessTeacher() {
        return markAssessTeacher;
    }

    public void setMarkAssessTeacher(String markAssessTeacher) {
        this.markAssessTeacher = markAssessTeacher;
    }

    public int getCommunityMaxCount() {
        return communityMaxCount;
    }

    public void setCommunityMaxCount(int communityMaxCount) {
        this.communityMaxCount = communityMaxCount;
    }

    public boolean isMailIsEnable() {
        return mailIsEnable;
    }

    public void setMailIsEnable(boolean mailIsEnable) {
        this.mailIsEnable = mailIsEnable;
    }

    public String getMailServerHost() {
        return mailServerHost;
    }

    public void setMailServerHost(String mailServerHost) {
        this.mailServerHost = mailServerHost;
    }

    public String getMailServerPort() {
        return mailServerPort;
    }

    public void setMailServerPort(String mailServerPort) {
        this.mailServerPort = mailServerPort;
    }

    public String getMailServerUserName() {
        return mailServerUserName;
    }

    public void setMailServerUserName(String mailServerUserName) {
        this.mailServerUserName = mailServerUserName;
    }

    public String getMailServerPassword() {
        return mailServerPassword;
    }

    public void setMailServerPassword(String mailServerPassword) {
        this.mailServerPassword = mailServerPassword;
    }

    public String getMailServerExeceptionEmail() {
        return mailServerExeceptionEmail;
    }

    public void setMailServerExeceptionEmail(String mailServerExeceptionEmail) {
        this.mailServerExeceptionEmail = mailServerExeceptionEmail;
    }

    public String getMailServerSystemName() {
        return mailServerSystemName;
    }

    public void setMailServerSystemName(String mailServerSystemName) {
        this.mailServerSystemName = mailServerSystemName;
    }

    public String getWxSendUrl() {
        return wxSendUrl;
    }

    public void setWxSendUrl(String wxSendUrl) {
        this.wxSendUrl = wxSendUrl;
    }

    public String getTopic_consumer() {
        return topic_consumer;
    }

    public void setTopic_consumer(String topic_consumer) {
        this.topic_consumer = topic_consumer;
    }

    public String getCommunity_consumer() {
        return community_consumer;
    }

    public String getCommunity_relation_productor() {
        return community_relation_productor;
    }

    public String getCommunity_relation_topic() {
        return community_relation_topic;
    }

    public void setCommunity_consumer(String community_consumer) {
        this.community_consumer = community_consumer;
    }

    public void setCommunity_relation_productor(String community_relation_productor) {
        this.community_relation_productor = community_relation_productor;
    }

    public void setCommunity_relation_topic(String community_relation_topic) {
        this.community_relation_topic = community_relation_topic;
    }

    public int getAccessTokenSeconds() {
        return accessTokenSeconds;
    }

    public void setAccessTokenSeconds(int accessTokenSeconds) {
        this.accessTokenSeconds = accessTokenSeconds;
    }

    public int getRefreshTokenSeconds() {
        return refreshTokenSeconds;
    }

    public void setRefreshTokenSeconds(int refreshTokenSeconds) {
        this.refreshTokenSeconds = refreshTokenSeconds;
    }

    public String getSmsTempId() {
        return smsTempId;
    }

    public void setSmsTempId(String smsTempId) {
        this.smsTempId = smsTempId;
    }

    public String getFindpassId() {
        return findpassId;
    }

    public void setFindpassId(String findpassId) {
        this.findpassId = findpassId;
    }

    public String getImgAccessKey() {
        return imgAccessKey;
    }

    public void setImgAccessKey(String imgAccessKey) {
        this.imgAccessKey = imgAccessKey;
    }

    public String getImgSecretKey() {
        return imgSecretKey;
    }

    public void setImgSecretKey(String imgSecretKey) {
        this.imgSecretKey = imgSecretKey;
    }

    public String getImgBucket() {
        return imgBucket;
    }

    public void setImgBucket(String imgBucket) {
        this.imgBucket = imgBucket;
    }

    public String getImgHead() {
        return imgHead;
    }

    public void setImgHead(String imgHead) {
        this.imgHead = imgHead;
    }

    public long getFileMaxsize() {
        return fileMaxsize;
    }

    public void setFileMaxsize(long fileMaxsize) {
        this.fileMaxsize = fileMaxsize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public boolean isTaskSwitch() {
        return taskSwitch;
    }

    public void setTaskSwitch(boolean taskSwitch) {
        this.taskSwitch = taskSwitch;
    }

    public boolean isTestEnv() {
        return testEnv;
    }

    public void setTestEnv(boolean testEnv) {
        this.testEnv = testEnv;
    }

    public boolean isMqtestEnv() {
        return mqtestEnv;
    }

    public void setMqtestEnv(boolean mqtestEnv) {
        this.mqtestEnv = mqtestEnv;
    }

    public String getMqAccessKey() {
        return mqAccessKey;
    }

    public void setMqAccessKey(String mqAccessKey) {
        this.mqAccessKey = mqAccessKey;
    }

    public String getMqSecretKey() {
        return mqSecretKey;
    }

    public void setMqSecretKey(String mqSecretKey) {
        this.mqSecretKey = mqSecretKey;
    }

    public int getFundwdMaxTimes() {
        return fundwdMaxTimes;
    }

    public void setFundwdMaxTimes(int fundwdMaxTimes) {
        this.fundwdMaxTimes = fundwdMaxTimes;
    }

    public String getWxappid() {
        return wxappid;
    }

    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

    public String getWxsecret() {
        return wxsecret;
    }

    public void setWxsecret(String wxsecret) {
        this.wxsecret = wxsecret;
    }

    public String getPcContentServer() {
        return pcContentServer;
    }

    public void setPcContentServer(String pcContentServer) {
        this.pcContentServer = pcContentServer;
    }

    public String getTopicViewUrl() {
        return topicViewUrl;
    }

    public void setTopicViewUrl(String topicViewUrl) {
        this.topicViewUrl = topicViewUrl;
    }

    public String getAjaxUrlHead() {
        return ajaxUrlHead;
    }

    public void setAjaxUrlHead(String ajaxUrlHead) {
        this.ajaxUrlHead = ajaxUrlHead;
    }

    public int getReadTime() {
        return readTime;
    }

    public void setReadTime(int readTime) {
        this.readTime = readTime;
    }

    public String getReadCookieKey() {
        return readCookieKey;
    }

    public void setReadCookieKey(String readCookieKey) {
        this.readCookieKey = readCookieKey;
    }

    public String getUser_relation_topic() {
        return user_relation_topic;
    }

    public void setUser_relation_topic(String user_relation_topic) {
        this.user_relation_topic = user_relation_topic;
    }

    public String getFund_relation_topic() {
        return fund_relation_topic;
    }

    public void setFund_relation_topic(String fund_relation_topic) {
        this.fund_relation_topic = fund_relation_topic;
    }

    public String getTopic_relation_topic() {
        return topic_relation_topic;
    }

    public void setTopic_relation_topic(String topic_relation_topic) {
        this.topic_relation_topic = topic_relation_topic;
    }

    public String getUser_relation_productor() {
        return user_relation_productor;
    }

    public void setUser_relation_productor(String user_relation_productor) {
        this.user_relation_productor = user_relation_productor;
    }

    public String getFund_relation_productor() {
        return fund_relation_productor;
    }

    public void setFund_relation_productor(String fund_relation_productor) {
        this.fund_relation_productor = fund_relation_productor;
    }

    public String getTopic_relation_productor() {
        return topic_relation_productor;
    }

    public void setTopic_relation_productor(String topic_relation_productor) {
        this.topic_relation_productor = topic_relation_productor;
    }

    public int getArticleCookieLimit() {
        return articleCookieLimit;
    }

    public void setArticleCookieLimit(int articleCookieLimit) {
        this.articleCookieLimit = articleCookieLimit;
    }

    public int getArticleIPLimit() {
        return articleIPLimit;
    }

    public void setArticleIPLimit(int articleIPLimit) {
        this.articleIPLimit = articleIPLimit;
    }

    public String getMessage_consumer() {
        return message_consumer;
    }

    public void setMessage_consumer(String message_consumer) {
        this.message_consumer = message_consumer;
    }

    public String getFund_consumer() {
        return fund_consumer;
    }

    public void setFund_consumer(String fund_consumer) {
        this.fund_consumer = fund_consumer;
    }

    public String getFollow_consumer() {
        return follow_consumer;
    }

    public void setFollow_consumer(String follow_consumer) {
        this.follow_consumer = follow_consumer;
    }

    public int getToday_share_topic_max_num() {
        return today_share_topic_max_num;
    }

    public void setToday_share_topic_max_num(int today_share_topic_max_num) {
        this.today_share_topic_max_num = today_share_topic_max_num;
    }

    public int getTopic_share_max_num() {
        return topic_share_max_num;
    }

    public void setTopic_share_max_num(int topic_share_max_num) {
        this.topic_share_max_num = topic_share_max_num;
    }

    public String getMqIsOpenModel() {
        return mqIsOpenModel;
    }

    public void setMqIsOpenModel(String mqIsOpenModel) {
        this.mqIsOpenModel = mqIsOpenModel;
    }

    public String getReport_consumer() {
        return report_consumer;
    }

    public void setReport_consumer(String report_consumer) {
        this.report_consumer = report_consumer;
    }

    public String getCarouselViewUrl() {
        return carouselViewUrl;
    }

    public void setCarouselViewUrl(String carouselViewUrl) {
        this.carouselViewUrl = carouselViewUrl;
    }

    public String getSendActiveCardId() {
        return sendActiveCardId;
    }

    public void setSendActiveCardId(String sendActiveCardId) {
        this.sendActiveCardId = sendActiveCardId;
    }

    public String getAppId() { return appId; }

    public void setAppId(String appId) { this.appId = appId; }

    public String getPrivateKey() { return privateKey; }

    public void setPrivateKey(String privateKey) { this.privateKey = privateKey; }

    public String getAliPublicKey() { return aliPublicKey; }

    public void setAliPublicKey(String aliPublicKey) { this.aliPublicKey = aliPublicKey; }

    public String getCharset() { return charset; }

    public void setCharset(String charset) { this.charset = charset; }

    public String getNotifyUrl() { return notifyUrl; }

    public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; }

    public String getWechatTradeType() {
        return wechatTradeType;
    }

    public void setWechatTradeType(String wechatTradeType) {
        this.wechatTradeType = wechatTradeType;
    }

    public String getWechatWebPartner() {
        return wechatWebPartner;
    }

    public void setWechatWebPartner(String wechatWebPartner) {
        this.wechatWebPartner = wechatWebPartner;
    }

    public String getWechatWebAppId() {
        return wechatWebAppId;
    }

    public void setWechatWebAppId(String wechatWebAppId) {
        this.wechatWebAppId = wechatWebAppId;
    }

    public String getWechatWebAppSecret() {
        return wechatWebAppSecret;
    }

    public void setWechatWebAppSecret(String wechatWebAppSecret) {
        this.wechatWebAppSecret = wechatWebAppSecret;
    }

    public String getWechatAppKey() {
        return wechatAppKey;
    }

    public void setWechatAppKey(String wechatAppKey) {
        this.wechatAppKey = wechatAppKey;
    }

    public String getWechatNotifyUrl() {
        return wechatNotifyUrl;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }

    public String getUserListUrl() {
        return userListUrl;
    }

    public void setUserListUrl(String userListUrl) {
        this.userListUrl = userListUrl;
    }

    public void setWechatNotifyUrl(String wechatNotifyUrl) {
        this.wechatNotifyUrl = wechatNotifyUrl;
    }

    public String getAlipayWebReturnUrl() {
        return alipayWebReturnUrl;
    }

    public void setAlipayWebReturnUrl(String alipayWebReturnUrl) {
        this.alipayWebReturnUrl = alipayWebReturnUrl;
    }

    public String getYccBaseUrl() {
        return yccBaseUrl;
    }

    public void setYccBaseUrl(String yccBaseUrl) {
        this.yccBaseUrl = yccBaseUrl;
    }

    public String getYccHostUrl() {
        return yccHostUrl;
    }

    public void setYccHostUrl(String yccHostUrl) {
        this.yccHostUrl = yccHostUrl;
    }
}
